import request from '@/utils/request'

// 查询工具树结构列表
export function listToolCategory(query) {
  return request({
    url: '/vueflow/toolCategory/list',
    method: 'get',
    params: query
  })
}

// 查询工具树结构详细
export function getToolCategory(id) {
  return request({
    url: '/vueflow/toolCategory/' + id,
    method: 'get'
  })
}

// 新增工具树结构
export function addToolCategory(data) {
  return request({
    url: '/vueflow/toolCategory',
    method: 'post',
    data: data
  })
}

// 修改工具树结构
export function updateToolCategory(data) {
  return request({
    url: '/vueflow/toolCategory',
    method: 'put',
    data: data
  })
}

// 删除工具树结构
export function delToolCategory(id) {
  return request({
    url: '/vueflow/toolCategory/' + id,
    method: 'delete'
  })
}

// 查询工具树结构列表
export function listAllToolCategory(query) {
  return request({
    url: '/vueflow/toolCategory/list/all',
    method: 'get',
    params: query
  })
}